package com.lcc.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lcc.common.utils.PageUtils;
import com.lcc.gulimall.product.entity.AttrEntity;
import com.lcc.gulimall.product.vo.AttrRespVo;
import com.lcc.gulimall.product.vo.AttrVo;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author Yunmo
 * @email li_cuican@163.com
 * @date 2021-11-03 21:02:34
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 收集AttrVo中的数据
     * @param attr
     */
    void saveAttr(AttrVo attr);

    PageUtils queryBaseAttrPage(Map<String, Object> params, Long catelogId, String attrType);

    AttrRespVo getAttrInfo(Long attrId);

    void updateAttr(AttrRespVo attr);

    List<AttrEntity> getRelationAttr(Long attrgroupId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrgroupId);

    List<Long> selectSearchAttrIdList(List<Long> attrIdList);

}

